package com.lecyon.farm.vo.sync;

import com.google.common.collect.Lists;
import com.lecyon.farm.common.constant.CommonConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Yao Zheng
 * @Date 2020/5/6 16:29
 */
@Data
@ApiModel("同步用请求Vo")
public class SyncRequestVo {

    @ApiModelProperty(name = "syncDataDate", value = "要同步数据的日期")
    @DateTimeFormat(pattern = CommonConstant.DATE_FORMAT_PATTERN)
    private LocalDate syncDataDate;

    @ApiModelProperty(name = "lastQueryTime", value = "要查询的数据时间")
    @DateTimeFormat(pattern = CommonConstant.DATE_TIME_FORMAT_PATTERN)
    private LocalDateTime lastQueryTime;

    @ApiModelProperty(name = "needSyncCarId", value = "需要同步的主机号")
    private List<String> needSyncCarId = Lists.newArrayList();

    @ApiModelProperty(name = "beginDate", value = "要同步数据的开始日期")
    @DateTimeFormat(pattern = CommonConstant.DATE_FORMAT_PATTERN)
    private LocalDate beginDate;

    @ApiModelProperty(name = "endDate", value = "要同步数据的结束日期")
    @DateTimeFormat(pattern = CommonConstant.DATE_FORMAT_PATTERN)
    private LocalDate endDate;

}
